<template>
    <g-layout title="分享">
        <view class="settings_vue pd-10">
            <view>下载说明：</view>
            <view>用微信扫一扫,点击右上角选择浏览器打开,下载软件安装包(目前只支持安卓手机)</view>
            <view class="share-img">
                <image class="images"  :src="src" mode="aspectFill" />
            </view>
            <view style="text-align: center;margin-top: 10px;">当前版本:{{versions}}</view>
            <view style="text-align: center;margin-top: 25px;" @click="onPhone()"><u-icon name="phone" /> 联系开发者</view>
        </view>
    </g-layout>
</template>

<script>
export default {
    name: "settings",
    data() {
        return {
            versions:'',
            src:"https://s11.ax1x.com/2024/02/06/pF1GeIO.png"
        }
    },
    mounted() {
        let self = this;
    },
    methods: {
        onPhone(){
            uni.showModal({
                title: '拨打电话？',
                success: function (res) {
                    if (res.confirm) {
                        uni.makePhoneCall({
                            phoneNumber: '15807768496', // 电话号码
                            success: (res) => {}, // 成功
                            fail:(err) => {} // 失败
                        });
                    }
                }
            });
        }
    },
}
</script>

<style scoped lang="scss">
/deep/.images{height: 300px;}
.settings_vue {
}
.share-img{
    margin-top: 25px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    zoom: 0.8;
    //border: 1px solid red;

}
</style>
